<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/31 0031
  Time: 22:38
  To change this template use File | Settings | File Templates.
    登陆界面
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<style>
    /* 居中 */
    .cont {
        width: 600px;
        margin: 0 auto;
        position: relative;
        top: 0;
        left: 0;
    }
    /* 注册框 */
    .main {
        width: 500px;
        height: 300px;
        background:rgba(255,255,255,0.9);
        border-radius: 8px;
        position: absolute;
        top: 300px;
        left: 0;
    }
    form {
        width: 400px;
        height: 200px;
        margin: 0 auto;
    }
    #res {
        position: absolute;
        bottom: 20px;
        left: 30px;
        color: red;
    }
</style>
<body style="background-image: url('image/bg2.jpeg')">
    <div class="cont">
        <div class="main">
            <form action="login-admin" method="post">
                <div class="form-group" style="text-align: center;"><br><h3>学生信息管理系统</h3></div>
                <div class="form-group">
                    <label>账号</label>
                    <input class="form-control" type="text" placeholder="请输入账号" name="username">
                </div>
                <div class="form-group">
                    <label>密码</label>
                    <input class="form-control" type="password" placeholder="请输入密码" name="password">
                </div>
                <div class="form-group" style="text-align: center;"><button class="btn btn-primary">登录</button></div>
            </form>
            <%
                String res = (String) request.getAttribute("res");
                if(res == null) {
                    res = "";
                }
            %>
            <span id="res"><%=res%></span>
        </div>
    </div>

</body>
</html>
